﻿using Crossroad.Utils.Extensions;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Crossroad.Utils.Helper
{

    /// <summary>
    /// 自定义 驼峰转底划线参数
    /// </summary>
    public class UnderlineSplitContractResolver : DefaultContractResolver
    {
        protected override string ResolvePropertyName(string propertyName)
        {
            propertyName = propertyName.ToUnderline();

            return propertyName;
        }
    }
}
